<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>passenger</title>
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style>
        #passg{
            width: 60%;
        }
    </style>
</head>
<body>
<center>
    <h1>乘客信息</h1>
<br>
    <div id="passg">
        <form action="../order/" method="POST">
        {%csrf_token%}
            <input type="text" style="display: none" name="username" value="{{ username }}"/>
            <input type="text" style="display: none" name="password" value="{{ password }}"/>
            <input type="text" style="display: none" name="train_no" value="{{ train_no }}"/>
            <input type="text" style="display: none" name="seat" value="{{ seat }}"/>
            <input type="text" style="display: none" name="start_station" value="{{ start_station }}"/>
            <input type="text" style="display: none" name="arrive_station" value="{{ arrive_station }}"/>
            <input type="text" style="display: none" name="start_time" value="{{ start_time }}"/>
            <input type="text" style="display: none" name="arrive_time" value="{{ arrive_time }}"/>
            <input type="text" style="display: none" name="train_date" value="{{ train_date }}"/>
            <input type="text" style="display: none" name="login_user" value="{{ login_user }}"/>
    <table border="1" style="border-collapse: collapse" class="table table-striped table-bordered table-hover mytable">
        <tr>
            <th>选择</th>
            <th style="display: none">序号</th>
            <th>乘车人</th>
            <th>身份证号</th>
            <th>手机号</th>
        </tr>
        {% for i in list2 %}
            <tr>
                <td><input type="checkbox" name="select" value="{{ i.1 }}"></td>
                <td style="display: none">{{ i.0 }}</td>
                <td>{{ i.1 }}</td>
                <td>{{ i.2 }}</td>
                <td>{{ i.3 }}</td>
            </tr>
        {% endfor %}
    </table>
    <button type="submit">提交</button>
        </form>
    </div>
</center>
</body>
</html>